<?
session_start();
include_once("../config.php");
include $_SERVER['DOCUMENT_ROOT']."/accounts/functions.php";
?>
<script type="text/javascript" src="http://<?=$_SERVER['HTTP_HOST']?>/accounts/accounts_mega_menu/js/menuOne.js"></script> 
<link href="http://<?=$_SERVER['HTTP_HOST']?>/accounts/accounts_mega_menu/css/style.css" rel="stylesheet" type="text/css" /> 

<style type="text/css">



body{
	padding:0px;
	margin:0px;
	color:#707070;
	font:14px/18px "Trebuchet MS", Arial, Helvetica, sans-serif;
	background-color: #fff;

}


div, p, ul, h2, h3, img{

	padding:0px;

	margin:0px;

}

ul{list-style-type:none;}




/*----TOP PANEL----*/

#topPan{
	width:1009px;
	height:100px;
	position:relative;
	margin:20px auto 1px;
/*	margin-left:20px;
	padding-top:45px;
	padding-left:20px;*/
	background:url(http://www.realivent.com/newheader/realivent_logo_new1.png);
	background-repeat: no-repeat;
	border-bottom:#999999;
	border-bottom-width:medium;
}
#topPan img{width:400; height:150; position:absolute; top:0; left:0px;}

#topPan login {
	margin-left:700px;
	margin-top:0px;
}

#topPan ul{
	width:100%;
	height:50px;
	margin:25px auto;
	margin-left:20px;
	<?php /*?>background-image: url(http://www.realivent.com/newheader/nav_new1.png);
background-repeat: no-repeat;<?php */?>


}
#topPan ul li{float:left; width:79px; height:32px; padding:7px 0 0 10px; margin-left:20px;}

#topPan ul li a{
	display:block;
	width:79px;
	height:50px;
	color:#fff;
	font-size:11px;
	line-height:32px;
	text-transform:uppercase;
	text-align:center;
	text-decoration:none;
	/*background-image: url(<?$_SERVER['DOCUMENT_ROOT']?>/images/menubg-normal.gif);*/
	background-repeat: no-repeat;
	background-position: 0 0;
	margin-left:20px;
}
/*#topPan ul li a:hover{background:url(<?$_SERVER['DOCUMENT_ROOT']?>/images/menubg-active.gif) 0 0 no-repeat #7E7B00; color:#7C7900; text-decoration:none;}*/

#topPan ul li a:hover{color:#CCFF00; background: transparent; text-decoration:none;}

#topPan ul li.home{
	display:block;
	width:79px;
	height:50px;
	font-size:11px;
	font-weight:bold;
	line-height:32px;
	color:#333333;
	text-decoration:underline;
	text-transform:uppercase;
	text-align:center;

}

/*----/TOP PANEL----*/




</style>

<div id="topPan">

	<?php

	if(!isset($_SESSION['id']))

	{

	?>

<div style="color: #FF6600; font-size:14px" align="right"> <a style="color: #FF6600; font-size:14px" href="<?$_SERVER['DOCUMENT_ROOT']?>/new_login.php">Login</a> | <a style="color: #FF6600; font-size:14px" href="<?$_SERVER['DOCUMENT_ROOT']?>/register_form.php">Register</a></div>

	<?php

	}

	else

	{

	?>

<div style="color: #FF6600; font-size:14px" align="right"> <div style="color: #FF6600; font-size:14px" align="right"> Welcome Back, <?php echo $_SESSION['username'] ?> | <a  style="color: #FF6600; font-size:14px" href="<?$_SERVER['DOCUMENT_ROOT']?>/logout.php">Logout</a></div></div>

	<?php

	}

	?>

</div>

<?php
if ( ($active != 'tutorials')  )
{
	?>

    <div id="container"> 
    <div id="header"> 
    <div id="navi-level-2"> 
 	<ul id="top-navi-list"> 
	<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/" rel=""  id="navi-2-3520" class=" " >Home</a></li>


<?
if (isServiceAccessible($_SESSION['type'], "Listings")) {
?> 

<li ><a href="#" rel=""  id="navi-2-3381" class=" " onmouseover="javascript:showDropdown(2, this.id);" onmouseout="javascript:hideDropdown(2, this.id);">My Profile</a> 
  <div id="marketplace-dropdown-2" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(2, 'navi-2-3381');" onmouseout="javascript:hideDropdown(2, 'navi-2-3381');" onclick="javascript:hideDropdown(2, 'navi-2-3381');"> 


<ul class="list-category"> 

			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/edit_user.php">Edit Profile</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/edit_user_profile.php">Business Info</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/edit_user_settings.php">Syndication Settings</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/agentprofile1-1/agentprofile1-1.camrec.htm" target="_blank" >Help</a></li>
            
        </ul> 
 
</div> 
</li> 

<?
}
else
{
?>

<li ><a href="#" rel=""  id="navi-2-3381" class=" " onmouseover="javascript:showDropdown(2, this.id);" onmouseout="javascript:hideDropdown(2, this.id);">My Profile</a> 
  <div id="marketplace-dropdown-2" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(2, 'navi-2-3381');" onmouseout="javascript:hideDropdown(2, 'navi-2-3381');" onclick="javascript:hideDropdown(2, 'navi-2-3381');"> 


<ul class="list-category"> 

			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/edit_user.php">Edit Profile</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/edit_user_profile.php">Business Info</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/edit_user_settings.php">Syndication Settings</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/agentprofile1-1/agentprofile1-1.camrec.htm" target="_blank" >Help</a></li>
            
        </ul> 
 
</div> 
</li> 

<?
}
?>    
    
<?
if (isServiceAccessible($_SESSION['type'], "Listings")) {
?>

<li ><a href="#" rel=""  id="navi-2-3385" class=" " onmouseover="javascript:showDropdown(3, this.id);" onmouseout="javascript:hideDropdown(3, this.id);">Listings</a> 
  <div id="marketplace-dropdown-3" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(3, 'navi-2-3385');" onmouseout="javascript:hideDropdown(3, 'navi-2-3385');" onclick="javascript:hideDropdown(3, 'navi-2-3385');"> 
    <ul class="list-category"> 		
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/new_listing.php">Add New Listing</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/listing.php">View Listings</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/listing_sort.php">Sort Listings</a></li>   
    </ul> 
</div> 
</li>

<?
}
else
{
?>
	
<li ><a href="#" rel=""  id="navi-2-3385" class=" " onmouseover="javascript:showDropdown(3, this.id);" onmouseout="javascript:hideDropdown(3, this.id);">Listings</a> 
  <div id="marketplace-dropdown-3" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(3, 'navi-2-3385');" onmouseout="javascript:hideDropdown(3, 'navi-2-3385');" onclick="javascript:hideDropdown(3, 'navi-2-3385');"> 
    <ul class="list-category"> 		
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/new_listing.php">Add New Listing</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/listing.php">View Listings</a></li>   
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/listing_sort.php">Sort Listings</a></li>   
    </ul> 
</div> 
</li>

<?
}
?>


<?
if (isServiceAccessible($_SESSION['type'], "Blogs")) {
?>




<li ><a href="#" rel=""  id="navi-2-3393" class=" " onmouseover="javascript:showDropdown(5, this.id);" onmouseout="javascript:hideDropdown(5, this.id);">Blogs</a> 
  <div id="marketplace-dropdown-5" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(5, 'navi-2-3393');" onmouseout="javascript:hideDropdown(5, 'navi-2-3393');" onclick="javascript:hideDropdown(5, 'navi-2-3393');"> 

    <ul class="list-category"> 
        	<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/blogsystem.php" >Blog Overview</a></li>
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/add_new_propblog.php?id=<?php echo $_SESSION['id'] ?>" >Create New Blog</a></li>
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/allmyblogs.php?id=<?php echo $_SESSION['id'] ?>">Manage Blogs</a></li>
			<?php /*?><li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/">Blog Feeds</a>
<ul>
<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/addblogfeed.php?page=add">Add Feed</a></li>
<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/allmyblogs.php?id=<?php echo $_SESSION['id'] ?>">Manage Feed</a></li>
</ul>
			</li><?php */?>
    </ul> 
 
</div> 
</li> 



<?
}
else
{
?>
   

<li ><a href="#" rel=""  id="navi-2-3393" class=" " onmouseover="javascript:showDropdown(5, this.id);" onmouseout="javascript:hideDropdown(5, this.id);">Blogs</a> 
  <div id="marketplace-dropdown-5" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(5, 'navi-2-3393');" onmouseout="javascript:hideDropdown(5, 'navi-2-3393');" onclick="javascript:hideDropdown(5, 'navi-2-3393');"> 

    <ul class="list-category"> 
        	<li><a href="javascript:showUpgradeMessage();" >Blog Overview</a></li>
            <li><a href="javascript:showUpgradeMessage();" >Create New Blog</a></li>
            <li><a href="javascript:showUpgradeMessage();">Manage Blogs</a></li>
			<?php /*?><li><a href="javascript:showUpgradeMessage();">Blog Feeds</a>
<ul>
<li><a href="javascript:showUpgradeMessage();">Add Feed</a></li>
<li><a href="javascript:showUpgradeMessage();">Manage Feed</a></li>
</ul>
			</li><?php */?>
    </ul> 
 
</div> 
</li> 


<?
}
?>

<?
if (isServiceAccessible($_SESSION['type'], "Flyers")) {
?>




<li ><a href="#" rel=""  id="navi-2-3397" class=" " onmouseover="javascript:showDropdown(6, this.id);" onmouseout="javascript:hideDropdown(6, this.id);">Flyers</a> 
  <div id="marketplace-dropdown-6" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(6, 'navi-2-3397');" onmouseout="javascript:hideDropdown(6, 'navi-2-3397');" onclick="javascript:hideDropdown(6, 'navi-2-3397');"> 

    <ul class="list-category"> 
        <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/listings.php?user_id=<? echo $_SESSION['id'];?>">Add</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/listings.php?user_id=<? echo $_SESSION['id'];?>">Edit</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/listings.php?user_id=<? echo $_SESSION['id'];?>">Manage</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/print.php?user_id=<? echo $_SESSION['id'];?>">Download Print Flyer</a></li>
    </ul> 
 
</div> 
</li> 


<?
}
else
{
?>

<li ><a href="#" rel=""  id="navi-2-3397" class=" " onmouseover="javascript:showDropdown(6, this.id);" onmouseout="javascript:hideDropdown(6, this.id);">Flyers</a> 
  <div id="marketplace-dropdown-6" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(6, 'navi-2-3397');" onmouseout="javascript:hideDropdown(6, 'navi-2-3397');" onclick="javascript:hideDropdown(6, 'navi-2-3397');"> 

    <ul class="list-category"> 
        <li><a href="javascript:showUpgradeMessage();">Add</a></li>
			<li><a href="javascript:showUpgradeMessage();">Edit</a></li>
			<li><a href="javascript:showUpgradeMessage();">Manage</a></li>
    </ul> 
 
</div> 
</li> 

<?
}
?>

<li ><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/facebook.php" rel="" class="">Facebook</a> </li>
<!-- Begin Home Tours Menu -->

<?
if (isServiceAccessible($_SESSION['type'], "Flyers")) {
?>




<!--<li ><a href="#" rel=""  id="navi-2-3397-ht" class=" " onmouseover="javascript:showDropdown(66, this.id);" onmouseout="javascript:hideDropdown(66, this.id);">Home Tours</a> 
  <div id="marketplace-dropdown-66" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(66, 'navi-2-3397-ht');" onmouseout="javascript:hideDropdown(66, 'navi-2-3397-ht');" onclick="javascript:hideDropdown(66, 'navi-2-3397-ht');"> 
 
    <ul class="list-category"> 
        <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/hometours.php?user_id=<? echo $_SESSION['id'];?>">Manage</a></li>
		<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/hometours.php?user_id=<? echo $_SESSION['id'];?>">Preview</a></li>
			
    </ul> 
 
</div> 
</li> -->
<li ><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/hometours.php?user_id=<? echo $_SESSION['id'];?>" rel=""  id="navi-2-3397" class="" target="_blank">Home Tours</a> </li>
<li ><a href="../library" rel=""  id="navi-2-3397" class="" target="_blank">Library</a> </li>


<?
}
else
{
?>

<li ><a href="#" rel=""  id="navi-2-3397" class=" " onmouseover="javascript:showDropdown(6, this.id);" onmouseout="javascript:hideDropdown(6, this.id);">Home Tours</a> 
  <div id="marketplace-dropdown-6" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(6, 'navi-2-3397');" onmouseout="javascript:hideDropdown(6, 'navi-2-3397');" onclick="javascript:hideDropdown(6, 'navi-2-3397');"> 

    <ul class="list-category"> 
        <li><a href="javascript:showUpgradeMessage();">Manage</a></li>
		<li><a href="javascript:showUpgradeMessage();">Preview</a></li>
    </ul> 
 
</div> 
</li> 
<li ><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/hometours.php?user_id=<? echo $_SESSION['id'];?>" rel=""  id="navi-2-3397" class="" target="_blank">Home Tours</a> </li>
<li ><a href="../library" rel=""  id="navi-2-3397" class="" target="_blank">Library</a> </li>

<?
}
?>




<?php

}

if($active == 'tutorials')

{

	?>

<div id="navi-level-2"> 

<ul id="top-navi-list"> 

<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/" rel=""  id="navi-2-3520" class=" " >Home</a></li>


<?
if (isServiceAccessible($_SESSION['type'], "Listings")) {
?> 

<li ><a href="#" rel=""  id="navi-2-3381" class=" " onmouseover="javascript:showDropdown(2, this.id);" onmouseout="javascript:hideDropdown(2, this.id);">My Profile</a> <div id="marketplace-dropdown-2" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(2, 'navi-2-3381');" onmouseout="javascript:hideDropdown(2, 'navi-2-3381');" onclick="javascript:hideDropdown(2, 'navi-2-3381');"> 


<ul class="list-category"> 

			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/edit_user.php">Edit Profile</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/edit_user_profile.php">Business Info</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/edit_user_settings.php">Syndication Settings</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/agentprofile1-1/agentprofile1-1.camrec.htm" target="_blank" >Help</a></li>
            
        </ul> 
 
</div> 
</li> 


<?
}
else
{
?>


<li ><a href="#" rel=""  id="navi-2-3381" class=" " onmouseover="javascript:showDropdown(2, this.id);" onmouseout="javascript:hideDropdown(2, this.id);">My Profile</a> 
  <div id="marketplace-dropdown-2" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(2, 'navi-2-3381');" onmouseout="javascript:hideDropdown(2, 'navi-2-3381');" onclick="javascript:hideDropdown(2, 'navi-2-3381');"> 


<ul class="list-category"> 

			<li><a href="javascript:showUpgradeMessage();">Add New Listing</a></li>
			<li><a href="javascript:showUpgradeMessage();">View Listings</a></li>
			
   </ul> 
 
</div> 
</li> 


<?
}
?>    
    
       
    
<?
if (isServiceAccessible($_SESSION['type'], "Listings")) {
?>

<li ><a href="#" rel=""  id="navi-2-3385" class=" " onmouseover="javascript:showDropdown(3, this.id);" onmouseout="javascript:hideDropdown(3, this.id);">Listings</a> 
  <div id="marketplace-dropdown-3" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(3, 'navi-2-3385');" onmouseout="javascript:hideDropdown(3, 'navi-2-3385');" onclick="javascript:hideDropdown(3, 'navi-2-3385');"> 
    
    <ul class="list-category"> 
    		
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/new_listing.php">Add New Listing</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/listing.php">View Listings</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/listing_sort.php">Sort Listings</a></li>   
			            
    </ul> 
 
</div> 
</li>


<?
}
else
{
?>
	
<li ><a href="#" rel=""  id="navi-2-3385" class=" " onmouseover="javascript:showDropdown(3, this.id);" onmouseout="javascript:hideDropdown(3, this.id);">Listings</a> 
  <div id="marketplace-dropdown-3" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(3, 'navi-2-3385');" onmouseout="javascript:hideDropdown(3, 'navi-2-3385');" onclick="javascript:hideDropdown(3, 'navi-2-3385');"> 
    
    <ul class="list-category"> 
    		
            <li><a href="javascript:showUpgradeMessage();">Add New Listing</a></li>
			<li><a href="javascript:showUpgradeMessage();">View Listings</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/listing_sort.php">Sort Listings</a></li>   
		
            
    </ul> 
 
</div> 
</li>


<?
}
?>


<?
if (isServiceAccessible($_SESSION['type'], "Blogs")) {
?>


<li ><a href="#" rel=""  id="navi-2-3393" class=" " onmouseover="javascript:showDropdown(5, this.id);" onmouseout="javascript:hideDropdown(5, this.id);">Blogs</a> 
  <div id="marketplace-dropdown-5" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(5, 'navi-2-3393');" onmouseout="javascript:hideDropdown(5, 'navi-2-3393');" onclick="javascript:hideDropdown(5, 'navi-2-3393');"> 

    <ul class="list-category"> 
        	<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/blogsystem.php" >Blog Overview</a></li>
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/add_new_propblog.php?id=<?php echo $_SESSION['id'] ?>" >Create New Blog</a></li>
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/allmyblogs.php?id=<?php echo $_SESSION['id'] ?>">Manage Blogs</a></li>
			<?php /*?><li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/">Blog Feeds</a>
<ul>
<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/addblogfeed.php?page=add">Add Feed</a></li>
<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/allmyblogs.php?id=<?php echo $_SESSION['id'] ?>">Manage Feed</a></li>
</ul>
			</li><?php */?>
    </ul> 
 
</div> 
</li> 



<?
}
else
{
?>
   

<li ><a href="#" rel=""  id="navi-2-3393" class=" " onmouseover="javascript:showDropdown(5, this.id);" onmouseout="javascript:hideDropdown(5, this.id);">Blogs</a> 
  <div id="marketplace-dropdown-5" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(5, 'navi-2-3393');" onmouseout="javascript:hideDropdown(5, 'navi-2-3393');" onclick="javascript:hideDropdown(5, 'navi-2-3393');"> 

    <ul class="list-category"> 
        	<li><a href="javascript:showUpgradeMessage();" >Blog Overview</a></li>
            <li><a href="javascript:showUpgradeMessage();" >Create New Blog</a></li>
            <li><a href="javascript:showUpgradeMessage();">Manage Blogs</a></li>
			<li><a href="javascript:showUpgradeMessage();">Blog Feeds</a>
				<ul>
					<li><a href="javascript:showUpgradeMessage();">Add Feed</a></li>
					<li><a href="javascript:showUpgradeMessage();">Manage Feed</a></li>
				</ul>
			</li>
    </ul> 
 
</div> 
</li> 


<?
}
?>

<?
if (isServiceAccessible($_SESSION['type'], "Flyers")) {
?>


<li ><a href="#" rel=""  id="navi-2-3397" class=" " onmouseover="javascript:showDropdown(6, this.id);" onmouseout="javascript:hideDropdown(6, this.id);">Flyers</a> 
  <div id="marketplace-dropdown-6" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(6, 'navi-2-3397');" onmouseout="javascript:hideDropdown(6, 'navi-2-3397');" onclick="javascript:hideDropdown(6, 'navi-2-3397');"> 

    <ul class="list-category"> 
        <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/listings.php?user_id=<? echo $_SESSION['id'];?>">Add</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/listings.php?user_id=<? echo $_SESSION['id'];?>">Edit</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/listings.php?user_id=<? echo $_SESSION['id'];?>">Manage</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/print.php?user_id=<? echo $_SESSION['id'];?>">Download Print Flyer</a></li>
    </ul> 
 
</div> 
</li> 


<?
}
else
{
?>

<li ><a href="#" rel=""  id="navi-2-3397" class=" " onmouseover="javascript:showDropdown(6, this.id);" onmouseout="javascript:hideDropdown(6, this.id);">Flyers</a> 
  <div id="marketplace-dropdown-6" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(6, 'navi-2-3397');" onmouseout="javascript:hideDropdown(6, 'navi-2-3397');" onclick="javascript:hideDropdown(6, 'navi-2-3397');"> 

    <ul class="list-category"> 
        <li><a href="javascript:showUpgradeMessage();">Add</a></li>
			<li><a href="javascript:showUpgradeMessage();">Edit</a></li>
			<li><a href="javascript:showUpgradeMessage();">Manage</a></li>
    </ul> 
 
</div> 
</li> 


<?
}
?>

<?
if (isServiceAccessible($_SESSION['type'], "Resources")) {
?>
	
    
<li ><a href="#" rel=""  id="navi-2-3405" class=" " onmouseover="javascript:showDropdown(8, this.id);" onmouseout="javascript:hideDropdown(8, this.id);">Resources</a> 
  <div id="marketplace-dropdown-8" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(8, 'navi-2-3405');" onmouseout="javascript:hideDropdown(8, 'navi-2-3405');" onclick="javascript:hideDropdown(8, 'navi-2-3405');"> 

    <ul class="list-category"> 
       <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/tutorials.php">All Tutorials</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/tutorials/wp_quickstart.php">Wordpress Quickstart</a></li>
    </ul> 
 
</div> 
</li> 

<?
}
else
{
?>


<li ><a href="#" rel=""  id="navi-2-3405" class=" " onmouseover="javascript:showDropdown(8, this.id);" onmouseout="javascript:hideDropdown(8, this.id);">Resources</a> 
  <div id="marketplace-dropdown-8" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(8, 'navi-2-3405');" onmouseout="javascript:hideDropdown(8, 'navi-2-3405');" onclick="javascript:hideDropdown(8, 'navi-2-3405');"> 

    <ul class="list-category"> 
       <li><a href="javascript:showUpgradeMessage();">All Tutorials</a></li>
			<li><a href="javascript:showUpgradeMessage();">Wordpress Quickstart</a></li>
    </ul> 
 
</div> 
</li>

<?
}
?>



</ul> 



 </div> 
 
     
<?
if (isServiceAccessible($_SESSION['type'], "Listings")) {
?>

<li ><a href="#" rel=""  id="navi-2-3385" class=" " onmouseover="javascript:showDropdown(3, this.id);" onmouseout="javascript:hideDropdown(3, this.id);">Listings</a> 
  <div id="marketplace-dropdown-3" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(3, 'navi-2-3385');" onmouseout="javascript:hideDropdown(3, 'navi-2-3385');" onclick="javascript:hideDropdown(3, 'navi-2-3385');"> 
    
    <ul class="list-category"> 
    		
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/new_listing.php">Add New Listing</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/listing.php">View Listings</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/listing_sort.php">Sort Listings</a></li>		
            
    </ul> 
 
</div> 
</li>


<?
}
else
{
?>
	
<li ><a href="#" rel=""  id="navi-2-3385" class=" " onmouseover="javascript:showDropdown(3, this.id);" onmouseout="javascript:hideDropdown(3, this.id);">Listings</a> 
  <div id="marketplace-dropdown-3" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(3, 'navi-2-3385');" onmouseout="javascript:hideDropdown(3, 'navi-2-3385');" onclick="javascript:hideDropdown(3, 'navi-2-3385');"> 
    
    <ul class="list-category"> 
    		
            <li><a href="javascript:showUpgradeMessage();">Add New Listing</a></li>
			<li><a href="javascript:showUpgradeMessage();">View Listings</a></li>
			            
    </ul> 
 
</div> 
</li>


<?
}
?>



<?
if (isServiceAccessible($_SESSION['type'], "Blogs")) {
?>


<li ><a href="#" rel=""  id="navi-2-3393" class=" " onmouseover="javascript:showDropdown(5, this.id);" onmouseout="javascript:hideDropdown(5, this.id);">Blogs</a> 
  <div id="marketplace-dropdown-5" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(5, 'navi-2-3393');" onmouseout="javascript:hideDropdown(5, 'navi-2-3393');" onclick="javascript:hideDropdown(5, 'navi-2-3393');"> 

    <ul class="list-category"> 
        	<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/blogsystem.php" >Blog Overview</a></li>
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/add_new_propblog.php?id=<?php echo $_SESSION['id'] ?>" >Create New Blog</a></li>
            <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/allmyblogs.php?id=<?php echo $_SESSION['id'] ?>">Manage Blogs</a></li>
			<?php /*?><li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/">Blog Feeds</a>
<ul>
<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/addblogfeed.php?page=add">Add Feed</a></li>
<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/allmyblogs.php?id=<?php echo $_SESSION['id'] ?>">Manage Feed</a></li>
</ul>
			</li><?php */?>
    </ul> 
 
</div> 
</li> 



<?
}
else
{
?>
   

<li ><a href="#" rel=""  id="navi-2-3393" class=" " onmouseover="javascript:showDropdown(5, this.id);" onmouseout="javascript:hideDropdown(5, this.id);">Blogs</a> 
  <div id="marketplace-dropdown-5" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(5, 'navi-2-3393');" onmouseout="javascript:hideDropdown(5, 'navi-2-3393');" onclick="javascript:hideDropdown(5, 'navi-2-3393');"> 

    <ul class="list-category"> 
        	<li><a href="javascript:showUpgradeMessage();" >Blog Overview</a></li>
            <li><a href="javascript:showUpgradeMessage();" >Create New Blog</a></li>
            <li><a href="javascript:showUpgradeMessage();">Manage Blogs</a></li>
			<?php /*?><li><a href="javascript:showUpgradeMessage();">Blog Feeds</a>
<ul>
<li><a href="javascript:showUpgradeMessage();">Add Feed</a></li>
<li><a href="javascript:showUpgradeMessage();">Manage Feed</a></li>
</ul>
			</li><?php */?>
    </ul> 
 
</div> 
</li> 

<?
}
?>

<?
if (isServiceAccessible($_SESSION['type'], "Flyers")) {
?>


<li ><a href="#" rel=""  id="navi-2-3397" class=" " onmouseover="javascript:showDropdown(6, this.id);" onmouseout="javascript:hideDropdown(6, this.id);">Flyers</a> 
  <div id="marketplace-dropdown-6" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(6, 'navi-2-3397');" onmouseout="javascript:hideDropdown(6, 'navi-2-3397');" onclick="javascript:hideDropdown(6, 'navi-2-3397');"> 

    <ul class="list-category"> 
        <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/listings.php?user_id=<? echo $_SESSION['id'];?>">Add</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/listings.php?user_id=<? echo $_SESSION['id'];?>">Edit</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/poster/account/listings.php?user_id=<? echo $_SESSION['id'];?>">Manage</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/print.php?user_id=<? echo $_SESSION['id'];?>">Download Print Flyer</a></li>
    </ul> 
 
</div> 
</li> 


<?
}
else
{
?>

<li ><a href="#" rel=""  id="navi-2-3397" class=" " onmouseover="javascript:showDropdown(6, this.id);" onmouseout="javascript:hideDropdown(6, this.id);">Flyers</a> 
  <div id="marketplace-dropdown-6" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(6, 'navi-2-3397');" onmouseout="javascript:hideDropdown(6, 'navi-2-3397');" onclick="javascript:hideDropdown(6, 'navi-2-3397');"> 

    <ul class="list-category"> 
        <li><a href="javascript:showUpgradeMessage();">Add</a></li>
			<li><a href="javascript:showUpgradeMessage();">Edit</a></li>
			<li><a href="javascript:showUpgradeMessage();">Manage</a></li>
    </ul> 
 
</div> 
</li> 


<?
}
?>



<?
if (isServiceAccessible($_SESSION['type'], "MyActivities")) {
?>

<li ><a href="#" rel=""  id="navi-2-3409" class=" " onmouseover="javascript:showDropdown(9, this.id);" onmouseout="javascript:hideDropdown(9, this.id);">MyActivities</a> <div id="marketplace-dropdown-9" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(7, 'navi-2-3409');" onmouseout="javascript:hideDropdown(9, 'navi-2-3409');" onclick="javascript:hideDropdown(9, 'navi-2-3409');"> 

    <ul class="list-category"> 

			<!--<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/submit.php">Submit a TIP</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/news.php">View My TIPS</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/points.php">Points Earned</a></li>-->
            <li><a href="#">Submit a TIP</a></li>
			<li><a href="#">View My TIPS</a></li>
			<li><a href="#">Points Earned</a></li>
		</ul>
	</li>
<?
}
else
{
?>
 <li ><a href="#" rel=""  id="navi-2-3409" class=" " onmouseover="javascript:showDropdown(9, this.id);" onmouseout="javascript:hideDropdown(9, this.id);">MyActivities</a> <div id="marketplace-dropdown-9" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(7, 'navi-2-3409');" onmouseout="javascript:hideDropdown(9, 'navi-2-3409');" onclick="javascript:hideDropdown(9, 'navi-2-3409');"> 

    <ul class="list-category"> 
			<!--<li><a href="javascript:showUpgradeMessage();">Submit a TIP</a></li>
			<li><a href="javascript:showUpgradeMessage();">View My TIPS</a></li>
			<li><a href="javascript:showUpgradeMessage();">Points Earned</a></li>-->
            <li><a href="javascript:showUpgradeMessage();">Submit a TIP</a></li>
			<li><a href="javascript:showUpgradeMessage();">View My TIPS</a></li>
			<li><a href="javascript:showUpgradeMessage();">Points Earned</a></li>
		</ul>
        </div>
	</li>
<?
}
?>

<?
if (isServiceAccessible($_SESSION['type'], "Resources")) {
?>
	
    
<li ><a href="#" rel=""  id="navi-2-3405" class=" " onmouseover="javascript:showDropdown(8, this.id);" onmouseout="javascript:hideDropdown(8, this.id);">Resources</a> 
  <div id="marketplace-dropdown-8" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(8, 'navi-2-3405');" onmouseout="javascript:hideDropdown(8, 'navi-2-3405');" onclick="javascript:hideDropdown(8, 'navi-2-3405');"> 

    <ul class="list-category"> 
       <li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/tutorials.php">All Tutorials</a></li>
			<li><a href="<?$_SERVER['DOCUMENT_ROOT']?>/accounts/tutorials/wp_quickstart.php">Wordpress Quickstart</a></li>
    </ul> 
 
</div> 
</li> 

<?
}
else
{
?>


<li ><a href="#" rel=""  id="navi-2-3405" class=" " onmouseover="javascript:showDropdown(8, this.id);" onmouseout="javascript:hideDropdown(8, this.id);">Resources</a> 
  <div id="marketplace-dropdown-8" class="marketplace-dropdown" style="left:-1000em;" onmouseover="javascript:showDropdown(8, 'navi-2-3405');" onmouseout="javascript:hideDropdown(8, 'navi-2-3405');" onclick="javascript:hideDropdown(8, 'navi-2-3405');"> 

    <ul class="list-category"> 
       <li><a href="javascript:showUpgradeMessage();">All Tutorials</a></li>
			<li><a href="javascript:showUpgradeMessage();">Wordpress Quickstart</a></li>
    </ul> 
 
</div> 
</li>

<?
}
?>


</ul> 


<li ><a href="../homtours.php" rel=""  id="navi-2-3397" class="" target="_blank">Home Tours</a> </li>
<li ><a href="../library" rel=""  id="navi-2-3397" class="" target="_blank">Library</a> </li>


 </div> 
 
 
 <?php

}
?>
 
<script type="text/javascript">
<?php if(stripos($_SERVER['SCRIPT_FILENAME'], "/facebook.php")===false && stripos($_SERVER['SCRIPT_FILENAME'], "/listing_sort.php")===false ) { ?>
function showDropdown(id, navId) {
	if($("search-department")) $("search-department").hide();
	$$('.marketplace-dropdown').each(function(item) {
		if(item.id == 'marketplace-dropdown-' +id) {
			item.style.left = '-1px';
			$(navId).className="menu-parent-active";
		}
		else item.style.left = '-1000em';
	});
}
function hideDropdown(id, navId) {
	if($("search-department")) $("search-department").show();
	$('marketplace-dropdown-'+id).style.left = '-1000em';
	$(navId).className="";
}
<?php } else { ?>
function showDropdown(id, navId) {
	if($("#search-department")) $("#search-department").hide();
	$('.marketplace-dropdown').each(function(item) {
		if($(this).attr('id') == 'marketplace-dropdown-' +id) {
			$(this).attr('style','left:-1px');
			$('#'+navId).attr('class',"menu-parent-active");
		}
		else $(this).attr('style','left:-1000em');
	});
}
function hideDropdown(id, navId) {
	if($("#search-department")) $("#search-department").show();
	$('#marketplace-dropdown-'+id).attr('style', 'left:-1000em');
	$('#'+navId).attr('class',"");
}
<?php } ?>
</script> 

</div> 
</div> 
